package com.nd.qa.shareplate.script.junit;

/**
 * Java junit接口信息类
 * @version 1.00 wuqiaomin 新建
 *
 */
public class AndroidJunitScript {

	public Object testCase(String caseName, String content) {
		StringBuffer buffer = new StringBuffer("");
		buffer.append("String methodName = Thread.currentThread().getStackTrace()[2].getMethodName();\n");
		buffer.append("solo.updateReportName(methodName);\n");
		buffer.append("solo.sleep(1000);\n");
		StringBuilder sb = new StringBuilder();
		sb.append(String.format("    public void test_%s() throws InterruptedException {\n%s\n%s}\n",caseName,buffer.toString(), content));
		return sb.toString();
	}

}
